import { BaseDto, BaseQueryDto } from '@/dtos/base.dto';
import { Prisma } from '@prisma/client';
import { IsDefined, IsNotEmptyObject } from 'class-validator';

export class AssetAutoSaleCreateDto extends BaseDto<Prisma.AssetAutoSaleCreateInput> {}

export class AssetAutoSaleQueryDto extends BaseQueryDto<Prisma.AssetAutoSaleWhereUniqueInput> {}

export class AssetAutoSaleUpdateDto extends BaseDto<Prisma.AssetAutoSaleUpdateInput> {
  @IsDefined({ message: '条件必填' })
  @IsNotEmptyObject({ nullable: false }, { message: '条件参数必填' })
  where: Prisma.AssetAutoSaleWhereUniqueInput;
}
